<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 122px;
            height: 122px;
            background: url(./img/apple.png) no-repeat;
            animation: mykey 6s infinite steps(5);
        }

        @keyframes mykey {
            0% {
                background-position: 0px 0px;
            }

            33% {
                background-position: -612px 0px;
            }

            33.1% {
                background-position: 0px -118px;
            }

            66% {
                background-position: -612px -118px;
            }

            66.1% {
                background-position: 0px -236px;
            }

            100% {
                background-position: -612px -236px;
            }
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>